@import '../../../styles/var.scss';

.page {
  background-color: #fff;
  min-height: 100vh;
}

.title {
  font-family: PingFangSC-Semibold;
  font-weight: 600;
  font-size: 48px;
  line-height: 1.4;
  color: #000000;
  margin-bottom: 52px;
}

.content {
  padding: 40px;
  padding-bottom: calc(160px + env(safe-area-inset-bottom));
  :global {
    .m-section{
      padding: 0;
      border-radius: 0;
    }
  }
}

.section {
  margin-bottom: 48px;

  &:last-child {
    margin-bottom: 0;
  }
}

.sectionTitle {
  font-size: 30px;
  font-weight: 600;
  color: $text-color-main;
  margin: 24px 0;
}


.previewGrid {
  display: grid;
  grid-template-columns: repeat(2, calc((100% - 16px) / 2));
  gap: 16px;
}

.previewItem {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f5f5f5;
}

.previewMedia {
  width: 100%;
  height: 100%;
  
  :global {
    .m-media-image,
    .m-media-video {
      width: 100%;
      height: 100%;
    }
  }
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  padding: 24px 32px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid #f0f0f0;
  display: flex;
  gap: 16px;
  z-index: 100;
}

.footerButton {
  flex: 1;
  height: 88px;
  border-radius: 44px;
  font-size: 32px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shareButton {
  background-color: #fff;
  color: $text-color-main;
  border: 1px solid #e0e0e0;
}

.preselectButton {
  background-color: $color-primary;
  color: #fff;
  border: none;

  &.disabled {
    // background-color: #e0e0e0;
    color: #fff;
    cursor: not-allowed;
  }
}


.previewImage {
  width: 100%;
  height: 100%;
}

